package com.wanxi.properties;


import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class properties {

    public static void main(String[] args) throws IOException {
        File file = new File("info.properties");
        FileInputStream fileInputStream = new FileInputStream(file);

        Properties properties = new Properties();
        properties.load(fileInputStream);
        String name = properties.getProperty("name");
        String password = properties.getProperty("password");


        System.out.println(name+",,,,"+password);

    }
}
